package org.ru.mse10.cvis.dto.cv;

import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import org.ru.mse10.cvis.dto.BaseDTO;
import org.ru.mse10.cvis.entity.cv.custom.CustomField;
import org.ru.mse10.cvis.entity.util.CustomFieldType;
import org.ru.mse10.cvis.util.BooleanSelection;

/**
 * The Class CustomFieldDTO.
 */
@ViewScoped
@ManagedBean(name = "customFieldDto")
public class CustomFieldDTO extends BaseDTO<CustomField> {

	/** The types. */
	private List<CustomFieldType> types;

	/** The identifier. */
	private String identifier;

	/** The display name. */
	private String displayName;

	/** The required. */
	private BooleanSelection required;

	/**
	 * Gets the types.
	 * 
	 * @return the types
	 */
	public List<CustomFieldType> getTypes() {
		return types;
	}

	/**
	 * Sets the types.
	 * 
	 * @param types
	 *            the new types
	 */
	public void setTypes(List<CustomFieldType> types) {
		this.types = types;
	}

	/**
	 * Gets the identifier.
	 * 
	 * @return the identifier
	 */
	public String getIdentifier() {
		return identifier;
	}

	/**
	 * Sets the identifier.
	 * 
	 * @param identifier
	 *            the new identifier
	 */
	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	/**
	 * Gets the display name.
	 * 
	 * @return the display name
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * Sets the display name.
	 * 
	 * @param displayName
	 *            the new display name
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	/**
	 * Gets the required.
	 * 
	 * @return the required
	 */
	public BooleanSelection getRequired() {
		return required;
	}

	/**
	 * Sets the required.
	 * 
	 * @param required
	 *            the new required
	 */
	public void setRequired(BooleanSelection required) {
		this.required = required;
	}

}